<template>
	<view class="container">
		<view class="comment-list">
			<view class="comment-item" v-for="(item, i) in arr" :key="i">
				<view class="left">
					<u-avatar size="60rpx" src="/static/images/avatar.png"></u-avatar>
				</view>
				<view class="right">
					<view class="nickname-box">
						<view class="nickname">金金设计**铺</view>
						<view class="date">2022.10.27</view>
					</view>
					<view class="stars">
						<u-rate inactiveIcon="star-fill" readonly inactiveColor="#DCDEE0" activeColor="#FBA808" gutter="6rpx" v-model="star"></u-rate>
					</view>
					
					<view class="comment-box">
						入手很多，活动力度很大必须囤起来，橙子很好，水分足，甜度可口，没有酸感，大小很合适。
					</view>
					<view class="img-list">
						<view class="img-item" v-for="(key ,index) in item.children" :key="index">
							<u-image radius="10rpx" width="110rpx" height="110rpx" src="/static/logo.png"></u-image>
						</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script setup>
	const star = ref(1)
	const arr = ref([{
		children: [{}]
	}])
</script>

<style lang="scss" scoped>
	.container {
		padding: 52rpx 26rpx;
	}
	.comment-list {
		.comment-item {
			background: #FFFFFF;
			border-radius: 20rpx;
			padding: 36rpx 20rpx 1rpx;
			@include between(100%);
			align-items: flex-start;
			margin-bottom: 20rpx;
			.right {
				flex: 1;
				margin-left: 20rpx;
				.nickname-box {
					@include between(100%);
					.nickname {
						color: #333333;
						font-size: 24rpx;
					}
					.date {
						font-size: 22rpx;
						color: #CCCCCC;
					}
				}
				.stars {
					margin-top: 10rpx;
				}
				.comment-box {
					margin-top: 24rpx;
					font-size: 24rpx;
					line-height: 32rpx;
					color: #666666;
					margin-bottom: 28rpx;
				}
				.img-list {
					display: flex;
					align-items: center;
					flex-wrap: wrap;
					.img-item {
						margin-right: 21rpx;
						margin-bottom: 28rpx;
					}
				}
			}
		}
	}
</style>
